package tgc.edu.ljc.bootstrap.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.ljc.bootstrap.custom.BaseService;
import tgc.edu.ljc.bootstrap.entity.Grade;
import tgc.edu.ljc.bootstrap.repository.GradeRepository;

@Service
public class GradeService extends BaseService<Grade, Integer>{
	@Autowired
	private GradeRepository gradeDAO;
	
	public List<Grade> findByStudentId(Integer id) {
		
		return gradeDAO.findByStudentId(id);
	}

}
